<template>
  <div class="big" @click="showName">我是</div>
</template>

<script>
export default {
methods:{
    showName(){
        this.$emit("selfEvent","王八犊子");
    }
}
}
</script>

<style scoped lang="less">
.big{
    width: 300px;
    height: 300px;
    background-color: rgb(255, 244, 127);
    border: 3px solid rebeccapurple;
    margin-bottom: 10px;
}
</style>